<?php

/**
 * @author vladone_2004@yahoo.com
 * @copyright 2007
 */
include('include/conf.php');
no_cache();
//ob_start();
$filename = "report_".time().".xls";
header('ETag: etagforie7download'); //IE7 requires this header
header('Content-type: application/octet_stream');
header("Content-disposition: attachment; filename=$filename");
//Add html tags, so that excel can interpret it
echo "<html><body>".stripslashes($_POST["htmltable"])."</body></html>";
//ob_end_flush();
?>